import requests
import re
req=requests.get('http://www.imooc.com/course/list')
buf=req.text
#print(buf)
listurl=re.findall(r'//.+\.jpg',buf)
i=0
for url in listurl:
   f=open(str(i)+'.jpg','wb')
   req=requests.get('http:'+url)
   buf=req.content
   f.write(buf)
   i+=1
   